/**
 * Created by zackey on 2016/5/28.
 */
// 定义组件

define(function (require,exports,module) {
    var sTpl = require("templates/Bar.html");
    require("../../lib/layer/layer.js");
    layer.config({
        path: '../../res/lib/layer/' //layer.js所在的目录，可以是绝对目录，也可以是相对目录
    });

    var VueComponent = Vue.extend({
        template: sTpl
        ,methods:{
            saveAppointment :function(){
                axios.post(basepath+'/api/appointment/fwuser',this.currentAppointment)
                    .then(function (response) {
                        console.log(response);
                    })
            }
        }
        ,data:function(){
            return {
                msg:"Bar页面",
                currentAppointment:{
                    appoUnit:"123",
                    appoName:"123"
                }
            }
        }
    });

    module.exports = VueComponent;
})

/**
 *  var VueComponent = Vue.extend({
        template: sTpl
        ,methods:{
            saveAppointment:function (){
                axios.post('/api/appointment/addSingle',this.currentAppointment)
                    .then(function (response) {
                        console.log(response);
                    })
            }
        },data:{
            currentAppointment:{
                appoUnit:"",
                appoName:""
            },
            msg:"123"
        },

    });
 */
